#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>

static void int_handle (int)
{
    write(1,"!",1);
}

int main ()
{
    int i;
    //signal(SIGINT , SIG_IGN);// 忽略Ctrl+c信号
    signal(SIGINT , int_handle);
    for(i = 0 ; i<10 ; i++)
    {
        write(1,"*",1);
        sleep(1);
    }










    exit(0);
}